package vn.smartoffice.promail.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import vn.smartoffice.mapper.IMapper;
import vn.smartoffice.promail.entity.MailItem;

@Repository
public interface MailItemMapper extends IMapper<MailItem> {

	List<MailItem> findByUserFolderId(@Param("userId")long userId, @Param("folderId") long folderId);

	List<MailItem> findByTitle(String keyword);
	
	void deleteByUserFolderId(@Param("userId")long userId, @Param("folderId") long folderId);

}
